﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NeonMika.Webserver.ClientLibrary
{
    public class Communicator
    {
        public XmlCommand echo = new XmlCommand("echo","Echo",new string[]{"value"});
        public XmlCommand switchDigitalPin = new XmlCommand("switchDigitalPin", "Switch digital pin", new string[] { "pin" });
        public XmlCommand setDigitalPin = new XmlCommand("setDigitalPin", "Set digital pin", new string[] { "pin", "state" });
        public XmlCommand setPwm = new XmlCommand("pwm", "Set PWM signal", new string[] { "pin", "period", "duration" });
        public XmlCommand getAnalogPinValue = new XmlCommand("getAnalogPinValue", "Get an analog pin's value", new string[] { "pin" });
        public XmlCommand getDigitalPinState = new XmlCommand("getDigitalPinState", "Get a digital pin's value", new string[] { "pin" });
        public XmlCommand getAllAnalogPinValues = new XmlCommand("getAllAnalogPinValues", "Get the value for all pins", null);
        public XmlCommand getAllDigitalPinStates = new XmlCommand("getAllDigitalPinStates", "Get the state for all pins", null);
        public XmlCommand getAllPWMValues = new XmlCommand("getAllPWMValues", "Get the duration and period for all pwm pins", null);
    }
}
